Profiles & User Actions

  • A type representing a Spotify user.

    The User protocol serves as the base protocol to which all Spotify user types conform. Its requirements include all the publicly available properties of a user. See the Spotify Web API Object Model for more details.

    See more

    Declaration

    Swift

    public protocol User
  • A type representing a Spotify item that can be followed or unfollowed by the current authenticated user.

    Types that conform to this protocol provide a set of request factories and convenience methods to either follow, unfollow, or check to see if the current authenticated user is already following the item. These types must also contain a valid Spotify ID.

    Note

    Although a Spotify playlist is technically a followable catalog item, the method declarations and implementations for following playlists differ from those defined here. Thus, the SKPlaylist type does not conform to this protocol, but instead provides its own comparable methods and request factories.
    See more

    Declaration

    Swift

    public protocol Followable
  • A type representing a Spotify item that can be saved to the current authenticated user’s Spotify music library.

    Types that conform to this protocol provide a set of request factories and convenience methods to either save, remove, or check to see if the user has already saved the item. These types must also contain a valid Spotify ID.

    See more

    Declaration

    Swift

    public protocol Savable